on = False  # 标志位,是否启用装饰器


def zhuangshiqi(func):
    if on:
        def inner():
            print('add  function....')
            x = func()
            return x

        return inner
    else:
        return func


@zhuangshiqi
def hell0():
    print('hello')


hell0()
